package com.luck.emp.entity;

import java.util.Date;

import com.luck.org.entity.VDepartment;
import com.luck.org.entity.VUser;
import com.luck.pf.util.DateUtil;
import com.luck.pf.util.FormateUtil;

/**
 * 说明:ENEITY类
 * Copyright: Copyright (c) 2011
 * 深圳**科技
 * @author 
 * 
 */
public class EmpTCustInfo implements java.io.Serializable {
		/**
		 * pk
		 * 客户编码
		 **/
		Long id;
		/**
		 * 客户标准代码
		 **/
		String custCode;
		/**
		 * 客户全称
		 **/
		String custName;
		/**
		 * 所属机构
		 **/
		private Long deptId;
		private VDepartment dept;
		/**
		 * 客户状态：0注销  1有效
		 **/
		String custStatus;
		/**
		 * 客户类型
		 **/
		String custType;
		/**
		 * 客户级别
		 **/
		String custLevel;
		/**
		 * 客户简称
		 **/
		String shortName;
		/**
		 * 联系人
		 **/
		String contactName;
		/**
		 * 联系人部门
		 **/
		String contactDept;
		/**
		 * 联系电话
		 **/
		String contactTel;
		/**
		 * 联系地址
		 **/
		String contactAddr;
		/**
		 * 邮编
		 **/
		String postCode;
		/**
		 * 电子信箱
		 **/
		String email;
		/**
		 * 网站
		 **/
		String website;
		/**
		 * 所在地区
		 **/
		String region;
		/**
		 * 创建人
		 **/
		private VUser createUser;
		/**
		 * 创建时间
		 **/
		Date createDate;
		/**
		 * 修改人
		 **/
		private VUser modiUser;
		/**
		 * 修改时间
		 **/
		Date modiDate;
		/**
		 * 业务范围
		 **/
		String custTrade;
		/**
		 * 审批状态
		 **/
		String applStatus;
		/**
		 * 企业志庆日
		 **/
		String importDate;
		/**
		 * 合同号
		 **/
		String contractNo;
		/**
		 * 业务联系人姓名
		 **/
		String tradeContactName;
		/**
		 * 业务联系人电话
		 **/
		String tradeContactTel;
		/**
		 * 业务联系人部门
		 **/
		String tradeContactDept;
		/**
		 * 备注
		 **/
		String note;
	
	public EmpTCustInfo(){
	}
	
		public Long getId(){
			return this.id;
		}		
		public void setId(Long id){
			this.id = id;
		}
		public String getCustCode(){
			return this.custCode;
		}		
		public void setCustCode(String custCode){
			this.custCode = custCode;
		}
		public String getCustName(){
			return this.custName;
		}		
		public void setCustName(String custName){
			this.custName = custName;
		}
		public String getCustStatus(){
			return this.custStatus;
		}		
		public void setCustStatus(String custStatus){
			this.custStatus = custStatus;
		}
		public String getCustType(){
			return this.custType;
		}		
		public void setCustType(String custType){
			this.custType = custType;
		}
		public String getCustLevel(){
			return this.custLevel;
		}		
		public void setCustLevel(String custLevel){
			this.custLevel = custLevel;
		}
		public String getShortName(){
			return this.shortName;
		}		
		public void setShortName(String shortName){
			this.shortName = shortName;
		}
		public String getContactName(){
			return this.contactName;
		}		
		public void setContactName(String contactName){
			this.contactName = contactName;
		}
		public String getContactDept(){
			return this.contactDept;
		}		
		public void setContactDept(String contactDept){
			this.contactDept = contactDept;
		}
		public String getContactTel(){
			return this.contactTel;
		}		
		public void setContactTel(String contactTel){
			this.contactTel = contactTel;
		}
		public String getContactAddr(){
			return this.contactAddr;
		}		
		public void setContactAddr(String contactAddr){
			this.contactAddr = contactAddr;
		}
		public String getPostCode(){
			return this.postCode;
		}		
		public void setPostCode(String postCode){
			this.postCode = postCode;
		}
		public String getEmail(){
			return this.email;
		}		
		public void setEmail(String email){
			this.email = email;
		}
		public String getWebsite(){
			return this.website;
		}		
		public void setWebsite(String website){
			this.website = website;
		}
		public String getRegion(){
			return this.region;
		}		
		public void setRegion(String region){
			this.region = region;
		}

		public Date getCreateDate(){
			return this.createDate;
		}		
		public void setCreateDate(Date createDate){
			this.createDate = createDate;
		}

		public Date getModiDate(){
			return this.modiDate;
		}		
		public void setModiDate(Date modiDate){
			this.modiDate = modiDate;
		}
		public String getCustTrade(){
			return this.custTrade;
		}		
		public void setCustTrade(String custTrade){
			this.custTrade = custTrade;
		}
		public String getApplStatus(){
			return this.applStatus;
		}		
		public void setApplStatus(String applStatus){
			this.applStatus = applStatus;
		}
		public String getImportDate(){
			return this.importDate;
		}		
		public void setImportDate(String importDate){
			this.importDate = importDate;
		}
		public String getContractNo(){
			return this.contractNo;
		}		
		public void setContractNo(String contractNo){
			this.contractNo = contractNo;
		}
		public String getTradeContactName(){
			return this.tradeContactName;
		}		
		public void setTradeContactName(String tradeContactName){
			this.tradeContactName = tradeContactName;
		}
		public String getTradeContactTel(){
			return this.tradeContactTel;
		}		
		public void setTradeContactTel(String tradeContactTel){
			this.tradeContactTel = tradeContactTel;
		}
		public String getTradeContactDept(){
			return this.tradeContactDept;
		}		
		public void setTradeContactDept(String tradeContactDept){
			this.tradeContactDept = tradeContactDept;
		}
		public String getNote(){
			return this.note;
		}		
		public void setNote(String note){
			this.note = note;
		}
	
		public VDepartment getDept() {
			return dept;
		}

		public void setDept(VDepartment dept) {
			this.dept = dept;
		}

		public VUser getCreateUser() {
			return createUser;
		}

		public void setCreateUser(VUser createUser) {
			this.createUser = createUser;
		}

		public VUser getModiUser() {
			return modiUser;
		}

		public void setModiUser(VUser modiUser) {
			this.modiUser = modiUser;
		}

		public String getCreateDateStr(){
			return DateUtil.dateToString(this.createDate,DateUtil.patternA);
		}
		public String getModiDateStr(){
			return DateUtil.dateToString(this.modiDate,DateUtil.patternA);
		}

		public Long getDeptId() {
			return deptId;
		}

		public String getCustLevelStr(){
			return FormateUtil.getInstance().getNameByCode("p_cust_level", this.custLevel);
		}		
		public void setDeptId(Long deptId) {
			this.deptId = deptId;
		}
		public String getCustStatusStr(){
			if(this.custStatus.equals("1"))
				return "启用";
			return "停用";
		}
}